//
//  FirstView01.m
//  homework_UITabBarController
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FirstView01.h"
#import "FirstView.h"

@interface FirstView01()

@property (nonatomic, retain) FirstView *firstView;

@end

@implementation FirstView01

-(void)dealloc
{
    [_firstView release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}

-(void)createSubViews
{
    //
    UIImage *image = [UIImage imageNamed:@"QQ.jpg"];
    UIImageView *imageView = [[UIImageView alloc]initWithImage:image];
    imageView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height - 400);
    [self addSubview:imageView];
    [imageView release];
    
    //
    FirstView *view = [[FirstView alloc]initWithFrame:CGRectMake(10, 400, self.frame.size.width - 40, 50) withLabel:@"帐号" withPlaceholder:@"请输入帐号"];
    
    FirstView *view1 = [[FirstView alloc]initWithFrame:CGRectMake(10, 500, self.frame.size.width - 40, 50) withLabel:@"密码" withPlaceholder:@"请输入密码"];
    
    [self addSubview:view1];
    
    [self addSubview:view];
    
    [view1 release];
    [view release];
    
}

@end
